package org.iot.iotserver.netty.command;

import io.netty.channel.ChannelHandlerContext;

/**
 * 抽象 Command
 * @param <T>
 */
public interface IYCommandExecutor<T> {

    /**
     * 接收到的远程命令是否与当前命令类型匹配
     * @param commandMetaData
     * @return
     */
    boolean isMatching(String commandMetaData);

    String execute(ChannelHandlerContext context, T... args);

}
